import uploadClient from '@/api/index.js'

export const uploadImage = async (file) => {
  const formData = new FormData()
  formData.append('file', file)
  const res = await uploadClient.post('/upload', formData)
  return res.data // { url: 'http://.../images/xxx.png' }
}

